package sctu.edu.java.year2016.team01.xuhanmei.day20160527.Printer1;

/**
 * Created by Administrator on 2016/5/27.
 */
public class LGPrinter implements Printer {


    @Override
    public void open() {
        System.out.println("LGPrinter opened");
    }


    @Override
    public void printp() {
        System.out.println("LGPrinter  print someting");

    }


    @Override
    public void close() {
        this.clean();//this关键字调用本类中的方法
        System.out.println("LGPrinter closed");

    }


    public void clean() {
        System.out.println("LGPrinter clean ifself before close");//为什么不能实现？？
    }
}
